cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT
authorJean-Jacques Hiblot <[email protected]>
Fri, 7 Dec 2018 13:50:37 +0000 (14:50 +0100)
committerHeiko Schocher <[email protected]>
Mon, 10 Dec 2018 05:03:14 +0000 (06:03 +0100)
commit65a97e7fcf54feb7c4ebe1aee8a572830af4cf51
tree94cb83e74144dc0d119ea3443d323e3272e1c3d9
parentcde578ff36b15ec9c2033f03b94ecf809af7cc64
cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT

The implementation of the EEPROM commands does not support the DM I2C API.
Prevent compilation breakage by not enabling it if the non-DM API is not
available (if DM_I2C is used without DM_I2C_COMPAT)

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
cmd/Kconfig